home *** CD-ROM | disk | FTP | other *** search
/ Champak 48 / cdrom_image.iso / Games / aengiequest.swf / scripts / DefineButton2_201 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2007-10-01  |  69.0 KB  |  1,589 lines

  1. on(release){
  2.    function ┬º\x01\x02┬º()
  3.    {
  4.       return 384;
  5.    }
  6.    var ┬º\x01┬º = 249 + "\x01\x02"();
  7.    loop0:
  8.    while(true)
  9.    {
  10.       if(eval("\x01") == 633)
  11.       {
  12.          set("\x01",eval("\x01") - 413);
  13.          ┬º┬ºpush(true);
  14.          continue;
  15.       }
  16.       if(eval("\x01") == 220)
  17.       {
  18.          set("\x01",eval("\x01") + 173);
  19.          if(function ┬º\x01\x02┬º()
  20.          {
  21.             return 384;
  22.          })
  23.          {
  24.             set("\x01",eval("\x01") + 227);
  25.          }
  26.          continue;
  27.       }
  28.       if(eval("\x01") == 568)
  29.       {
  30.          set("\x01",eval("\x01") + 334);
  31.          ┬º┬ºpush(true);
  32.          continue;
  33.       }
  34.       if(eval("\x01") == 284)
  35.       {
  36.          set("\x01",eval("\x01") + 533);
  37.          ┬º┬ºpush(!function ┬º\x01\x02┬º()
  38.          {
  39.             return 384;
  40.          });
  41.          continue;
  42.       }
  43.       if(eval("\x01") == 302)
  44.       {
  45.          set("\x01",eval("\x01") + 528);
  46.          ┬º┬ºpush(true);
  47.          continue;
  48.       }
  49.       if(eval("\x01") == 775)
  50.       {
  51.          set("\x01",eval("\x01") - 491);
  52.          ┬º┬ºpush(eval(function ┬º\x01\x02┬º()
  53.          {
  54.             return 384;
  55.          }));
  56.          continue;
  57.       }
  58.       if(eval("\x01") == 697)
  59.       {
  60.          set("\x01",eval("\x01") - 280);
  61.          continue;
  62.       }
  63.       if(eval("\x01") == 714)
  64.       {
  65.          set("\x01",eval("\x01") + 61);
  66.          ┬º┬ºpush("\x0f");
  67.          continue;
  68.       }
  69.       if(eval("\x01") == 210)
  70.       {
  71.          set("\x01",eval("\x01") - 75);
  72.          break;
  73.       }
  74.       if(eval("\x01") == 830)
  75.       {
  76.          set("\x01",eval("\x01") - 620);
  77.          if(function ┬º\x01\x02┬º()
  78.          {
  79.             return 384;
  80.          })
  81.          {
  82.             set("\x01",eval("\x01") - 75);
  83.          }
  84.          continue;
  85.       }
  86.       if(eval("\x01") == 620)
  87.       {
  88.          set("\x01",eval("\x01") - 318);
  89.          continue;
  90.       }
  91.       if(eval("\x01") == 417)
  92.       {
  93.          set("\x01",eval("\x01") + 183);
  94.          ┬º┬ºpush("\x0f");
  95.          ┬º┬ºpush(1);
  96.          continue;
  97.       }
  98.       if(eval("\x01") != 393)
  99.       {
  100.          if(eval("\x01") == 817)
  101.          {
  102.             set("\x01",eval("\x01") - 377);
  103.             if(function ┬º\x01\x02┬º()
  104.             {
  105.                return 384;
  106.             })
  107.             {
  108.                set("\x01",eval("\x01") + 0);
  109.             }
  110.          }
  111.          else if(eval("\x01") == 600)
  112.          {
  113.             set("\x01",eval("\x01") + 114);
  114.             var ┬º┬ºpop() = function ┬º\x01\x02┬º()
  115.             {
  116.                return 384;
  117.             };
  118.          }
  119.          else if(eval("\x01") == 135)
  120.          {
  121.             set("\x01",eval("\x01") + 433);
  122.          }
  123.          else
  124.          {
  125.             if(eval("\x01") == 440)
  126.             {
  127.                set("\x01",eval("\x01") + 350);
  128.                _root.clickSound.start();
  129.                gotoAndStop("instructions");
  130.                break;
  131.             }
  132.             if(eval("\x01") == 702)
  133.             {
  134.                set("\x01",eval("\x01") - 134);
  135.             }
  136.             else
  137.             {
  138.                if(eval("\x01") == 790)
  139.                {
  140.                   set("\x01",eval("\x01") - 790);
  141.                   break;
  142.                }
  143.                if(eval("\x01") == 802)
  144.                {
  145.                   set("\x01",eval("\x01") - 500);
  146.                }
  147.                else if(eval("\x01") == 803)
  148.                {
  149.                   set("\x01",eval("\x01") - 386);
  150.                }
  151.                else
  152.                {
  153.                   if(eval("\x01") != 902)
  154.                   {
  155.                      if(eval("\x01") == 44)
  156.                      {
  157.                         set("\x01",eval("\x01") + 653);
  158.                         if(┬º┬ºpop()[function ┬º\x01\x02┬º()
  159.                         {
  160.                            return 384;
  161.                         }][┬º┬ºconstant(31)]() == ┬º┬ºconstant(43))
  162.                         {
  163.                            _global.Game = function()
  164.                            {
  165.                               super();
  166.                               this.score = 0;
  167.                               this.loadLevels();
  168.                               this.soundFade = 800;
  169.                            }[┬º┬ºconstant(29)] = 13;
  170.                         }
  171.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(44))
  172.                         {
  173.                            _global.Game = function()
  174.                            {
  175.                               super();
  176.                               this.score = 0;
  177.                               this.loadLevels();
  178.                               this.soundFade = 800;
  179.                            }[┬º┬ºconstant(29)] = 14;
  180.                         }
  181.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(45))
  182.                         {
  183.                            _global.Game = function()
  184.                            {
  185.                               super();
  186.                               this.score = 0;
  187.                               this.loadLevels();
  188.                               this.soundFade = 800;
  189.                            }[┬º┬ºconstant(29)] = 15;
  190.                         }
  191.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(46))
  192.                         {
  193.                            _global.Game = function()
  194.                            {
  195.                               super();
  196.                               this.score = 0;
  197.                               this.loadLevels();
  198.                               this.soundFade = 800;
  199.                            }[┬º┬ºconstant(29)] = 16;
  200.                         }
  201.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(47))
  202.                         {
  203.                            _global.Game = function()
  204.                            {
  205.                               super();
  206.                               this.score = 0;
  207.                               this.loadLevels();
  208.                               this.soundFade = 800;
  209.                            }[┬º┬ºconstant(29)] = 17;
  210.                         }
  211.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(48))
  212.                         {
  213.                            _global.Game = function()
  214.                            {
  215.                               super();
  216.                               this.score = 0;
  217.                               this.loadLevels();
  218.                               this.soundFade = 800;
  219.                            }[┬º┬ºconstant(29)] = 18;
  220.                         }
  221.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(49))
  222.                         {
  223.                            _global.Game = function()
  224.                            {
  225.                               super();
  226.                               this.score = 0;
  227.                               this.loadLevels();
  228.                               this.soundFade = 800;
  229.                            }[┬º┬ºconstant(29)] = 19;
  230.                         }
  231.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(50))
  232.                         {
  233.                            _global.Game = function()
  234.                            {
  235.                               super();
  236.                               this.score = 0;
  237.                               this.loadLevels();
  238.                               this.soundFade = 800;
  239.                            }[┬º┬ºconstant(29)] = 20;
  240.                         }
  241.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(51))
  242.                         {
  243.                            _global.Game = function()
  244.                            {
  245.                               super();
  246.                               this.score = 0;
  247.                               this.loadLevels();
  248.                               this.soundFade = 800;
  249.                            }[┬º┬ºconstant(29)] = 21;
  250.                         }
  251.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(52))
  252.                         {
  253.                            _global.Game = function()
  254.                            {
  255.                               super();
  256.                               this.score = 0;
  257.                               this.loadLevels();
  258.                               this.soundFade = 800;
  259.                            }[┬º┬ºconstant(29)] = 22;
  260.                         }
  261.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(53))
  262.                         {
  263.                            _global.Game = function()
  264.                            {
  265.                               super();
  266.                               this.score = 0;
  267.                               this.loadLevels();
  268.                               this.soundFade = 800;
  269.                            }[┬º┬ºconstant(29)] = 23;
  270.                         }
  271.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(54))
  272.                         {
  273.                            _global.Game = function()
  274.                            {
  275.                               super();
  276.                               this.score = 0;
  277.                               this.loadLevels();
  278.                               this.soundFade = 800;
  279.                            }[┬º┬ºconstant(29)] = 24;
  280.                         }
  281.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(55))
  282.                         {
  283.                            _global.Game = function()
  284.                            {
  285.                               super();
  286.                               this.score = 0;
  287.                               this.loadLevels();
  288.                               this.soundFade = 800;
  289.                            }[┬º┬ºconstant(29)] = 25;
  290.                         }
  291.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(56))
  292.                         {
  293.                            _global.Game = function()
  294.                            {
  295.                               super();
  296.                               this.score = 0;
  297.                               this.loadLevels();
  298.                               this.soundFade = 800;
  299.                            }[┬º┬ºconstant(29)] = 26;
  300.                         }
  301.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(57))
  302.                         {
  303.                            _global.Game = function()
  304.                            {
  305.                               super();
  306.                               this.score = 0;
  307.                               this.loadLevels();
  308.                               this.soundFade = 800;
  309.                            }[┬º┬ºconstant(29)] = 27;
  310.                         }
  311.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(58))
  312.                         {
  313.                            _global.Game = function()
  314.                            {
  315.                               super();
  316.                               this.score = 0;
  317.                               this.loadLevels();
  318.                               this.soundFade = 800;
  319.                            }[┬º┬ºconstant(29)] = 28;
  320.                         }
  321.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(59))
  322.                         {
  323.                            _global.Game = function()
  324.                            {
  325.                               super();
  326.                               this.score = 0;
  327.                               this.loadLevels();
  328.                               this.soundFade = 800;
  329.                            }[┬º┬ºconstant(29)] = 29;
  330.                         }
  331.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(60))
  332.                         {
  333.                            _global.Game = function()
  334.                            {
  335.                               super();
  336.                               this.score = 0;
  337.                               this.loadLevels();
  338.                               this.soundFade = 800;
  339.                            }[┬º┬ºconstant(29)] = 30;
  340.                         }
  341.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(61))
  342.                         {
  343.                            _global.Game = function()
  344.                            {
  345.                               super();
  346.                               this.score = 0;
  347.                               this.loadLevels();
  348.                               this.soundFade = 800;
  349.                            }[┬º┬ºconstant(29)] = 31;
  350.                         }
  351.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(62))
  352.                         {
  353.                            _global.Game = function()
  354.                            {
  355.                               super();
  356.                               this.score = 0;
  357.                               this.loadLevels();
  358.                               this.soundFade = 800;
  359.                            }[┬º┬ºconstant(29)] = 32;
  360.                         }
  361.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(63))
  362.                         {
  363.                            _global.Game = function()
  364.                            {
  365.                               super();
  366.                               this.score = 0;
  367.                               this.loadLevels();
  368.                               this.soundFade = 800;
  369.                            }[┬º┬ºconstant(29)] = 33;
  370.                         }
  371.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(64))
  372.                         {
  373.                            _global.Game = function()
  374.                            {
  375.                               super();
  376.                               this.score = 0;
  377.                               this.loadLevels();
  378.                               this.soundFade = 800;
  379.                            }[┬º┬ºconstant(29)] = 34;
  380.                         }
  381.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(65))
  382.                         {
  383.                            _global.Game = function()
  384.                            {
  385.                               super();
  386.                               this.score = 0;
  387.                               this.loadLevels();
  388.                               this.soundFade = 800;
  389.                            }[┬º┬ºconstant(29)] = 35;
  390.                         }
  391.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(66))
  392.                         {
  393.                            _global.Game = function()
  394.                            {
  395.                               super();
  396.                               this.score = 0;
  397.                               this.loadLevels();
  398.                               this.soundFade = 800;
  399.                            }[┬º┬ºconstant(29)] = 36;
  400.                         }
  401.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(67))
  402.                         {
  403.                            _global.Game = function()
  404.                            {
  405.                               super();
  406.                               this.score = 0;
  407.                               this.loadLevels();
  408.                               this.soundFade = 800;
  409.                            }[┬º┬ºconstant(29)] = 37;
  410.                         }
  411.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(68))
  412.                         {
  413.                            _global.Game = function()
  414.                            {
  415.                               super();
  416.                               this.score = 0;
  417.                               this.loadLevels();
  418.                               this.soundFade = 800;
  419.                            }[┬º┬ºconstant(29)] = 38;
  420.                         }
  421.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(69))
  422.                         {
  423.                            _global.Game = function()
  424.                            {
  425.                               super();
  426.                               this.score = 0;
  427.                               this.loadLevels();
  428.                               this.soundFade = 800;
  429.                            }[┬º┬ºconstant(29)] = 39;
  430.                         }
  431.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(70))
  432.                         {
  433.                            _global.Game = function()
  434.                            {
  435.                               super();
  436.                               this.score = 0;
  437.                               this.loadLevels();
  438.                               this.soundFade = 800;
  439.                            }[┬º┬ºconstant(29)] = 40;
  440.                         }
  441.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(71))
  442.                         {
  443.                            _global.Game = function()
  444.                            {
  445.                               super();
  446.                               this.score = 0;
  447.                               this.loadLevels();
  448.                               this.soundFade = 800;
  449.                            }[┬º┬ºconstant(29)] = 41;
  450.                         }
  451.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(72))
  452.                         {
  453.                            _global.Game = function()
  454.                            {
  455.                               super();
  456.                               this.score = 0;
  457.                               this.loadLevels();
  458.                               this.soundFade = 800;
  459.                            }[┬º┬ºconstant(29)] = 42;
  460.                         }
  461.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(73))
  462.                         {
  463.                            _global.Game = function()
  464.                            {
  465.                               super();
  466.                               this.score = 0;
  467.                               this.loadLevels();
  468.                               this.soundFade = 800;
  469.                            }[┬º┬ºconstant(29)] = 43;
  470.                         }
  471.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(74))
  472.                         {
  473.                            _global.Game = function()
  474.                            {
  475.                               super();
  476.                               this.score = 0;
  477.                               this.loadLevels();
  478.                               this.soundFade = 800;
  479.                            }[┬º┬ºconstant(29)] = 44;
  480.                         }
  481.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(75))
  482.                         {
  483.                            _global.Game = function()
  484.                            {
  485.                               super();
  486.                               this.score = 0;
  487.                               this.loadLevels();
  488.                               this.soundFade = 800;
  489.                            }[┬º┬ºconstant(29)] = 45;
  490.                         }
  491.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(76))
  492.                         {
  493.                            _global.Game = function()
  494.                            {
  495.                               super();
  496.                               this.score = 0;
  497.                               this.loadLevels();
  498.                               this.soundFade = 800;
  499.                            }[┬º┬ºconstant(29)] = 46;
  500.                         }
  501.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(77))
  502.                         {
  503.                            _global.Game = function()
  504.                            {
  505.                               super();
  506.                               this.score = 0;
  507.                               this.loadLevels();
  508.                               this.soundFade = 800;
  509.                            }[┬º┬ºconstant(29)] = 47;
  510.                         }
  511.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(78))
  512.                         {
  513.                            _global.Game = function()
  514.                            {
  515.                               super();
  516.                               this.score = 0;
  517.                               this.loadLevels();
  518.                               this.soundFade = 800;
  519.                            }[┬º┬ºconstant(29)] = 48;
  520.                         }
  521.                         if(_loc2_[┬º┬ºconstant(30)][┬º┬ºconstant(31)]() == ┬º┬ºconstant(79))
  522.                         {
  523.                            _global.Game = function()
  524.                            {
  525.                               super();
  526.                               this.score = 0;
  527.                               this.loadLevels();
  528.                               this.soundFade = 800;
  529.                            }[┬º┬ºconstant(29)] = 49;
  530.                         }
  531.                         _loc2_[┬º┬ºconstant(80)] = _global.Game = function()
  532.                         {
  533.                            super();
  534.                            this.score = 0;
  535.                            this.loadLevels();
  536.                            this.soundFade = 800;
  537.                         }[┬º┬ºconstant(29)] - 1;
  538.                         ┬º┬ºpop()[┬º┬ºpop()] = (_global.Game = function()
  539.                         {
  540.                            super();
  541.                            this.score = 0;
  542.                            this.loadLevels();
  543.                            this.soundFade = 800;
  544.                         })[┬º┬ºconstant(10)](┬º┬ºconstant(24));
  545.                         ┬º┬ºconstant(81)(eval("{invalid_utf8=146}=")["{invalid_utf8=255}IO"]["{P4-"],null,1);
  546.                      }
  547.                      break;
  548.                   }
  549.                   set("\x01",eval("\x01") - 858);
  550.                   if(function ┬º\x01\x02┬º()
  551.                   {
  552.                      return 384;
  553.                   })
  554.                   {
  555.                      set("\x01",eval("\x01") + 653);
  556.                   }
  557.                }
  558.             }
  559.          }
  560.          continue;
  561.       }
  562.       set("\x01",eval("\x01") + 227);
  563.       loop1:
  564.       while(true)
  565.       {
  566.          ┬º┬ºpush("\x0f");
  567.          while(true)
  568.          {
  569.             if(eval("\x01") == 961)
  570.             {
  571.                set("\x01",eval("\x01") + 3);
  572.                ┬º┬ºpush(true);
  573.             }
  574.             else if(eval("\x01") == 717)
  575.             {
  576.                set("\x01",eval("\x01") - 471);
  577.                ┬º┬ºpush(eval(function ┬º\x01\x02┬º()
  578.                {
  579.                   return 384;
  580.                }));
  581.             }
  582.             else if(eval("\x01") == 964)
  583.             {
  584.                set("\x01",eval("\x01") - 923);
  585.                if(function ┬º\x01\x02┬º()
  586.                {
  587.                   return 384;
  588.                })
  589.                {
  590.                   set("\x01",eval("\x01") + 818);
  591.                }
  592.             }
  593.             else
  594.             {
  595.                if(eval("\x01") == 41)
  596.                {
  597.                   break loop1;
  598.                }
  599.                if(eval("\x01") == 859)
  600.                {
  601.                   set("\x01",eval("\x01") - 828);
  602.                }
  603.                else if(eval("\x01") == 246)
  604.                {
  605.                   set("\x01",eval("\x01") + 95);
  606.                   ┬º┬ºpush(!function ┬º\x01\x02┬º()
  607.                   {
  608.                      return 384;
  609.                   });
  610.                }
  611.                else if(eval("\x01") == 957)
  612.                {
  613.                   set("\x01",eval("\x01") - 926);
  614.                }
  615.                else if(eval("\x01") == 31)
  616.                {
  617.                   set("\x01",eval("\x01") + 216);
  618.                   ┬º┬ºpush("\x0f");
  619.                   ┬º┬ºpush(1);
  620.                }
  621.                else if(eval("\x01") == 247)
  622.                {
  623.                   set("\x01",eval("\x01") + 131);
  624.                   var ┬º┬ºpop() = function ┬º\x01\x02┬º()
  625.                   {
  626.                      return 384;
  627.                   };
  628.                }
  629.                else
  630.                {
  631.                   if(eval("\x01") == 378)
  632.                   {
  633.                      break;
  634.                   }
  635.                   if(eval("\x01") == 672)
  636.                   {
  637.                      set("\x01",eval("\x01") + 248);
  638.                      Object.registerClass("message",Message);
  639.                      break loop0;
  640.                   }
  641.                   if(eval("\x01") != 341)
  642.                   {
  643.                      if(eval("\x01") == 920)
  644.                      {
  645.                         set("\x01",eval("\x01") - 920);
  646.                      }
  647.                      break loop0;
  648.                   }
  649.                   set("\x01",eval("\x01") + 331);
  650.                   if(function ┬º\x01\x02┬º()
  651.                   {
  652.                      return 384;
  653.                   })
  654.                   {
  655.                      set("\x01",eval("\x01") + 0);
  656.                   }
  657.                }
  658.             }
  659.          }
  660.          set("\x01",eval("\x01") + 339);
  661.       }
  662.       set("\x01",eval("\x01") + 818);
  663.       while(true)
  664.       {
  665.          if(function ┬º\x01\x02┬º()
  666.          {
  667.             return 384;
  668.          })
  669.          {
  670.             set("\x01",eval("\x01") + 133);
  671.             var ┬º┬ºpop() = ┬º┬ºpop();
  672.          }
  673.          else if(eval("\x01") == 588)
  674.          {
  675.             set("\x01",eval("\x01") - 517);
  676.          }
  677.          else
  678.          {
  679.             if(eval("\x01") == 674)
  680.             {
  681.                set("\x01",eval("\x01") - 674);
  682.                break loop0;
  683.             }
  684.             if(eval("\x01") == 326)
  685.             {
  686.                set("\x01",eval("\x01") + 262);
  687.                stop();
  688.                break loop0;
  689.             }
  690.             if(eval("\x01") == 928)
  691.             {
  692.                set("\x01",eval("\x01") + 56);
  693.                break loop0;
  694.             }
  695.             if(eval("\x01") != 371)
  696.             {
  697.                break loop0;
  698.             }
  699.             set("\x01",eval("\x01") + 490);
  700.             ┬º┬ºpush(eval(┬º┬ºpop()));
  701.          }
  702.          while(true)
  703.          {
  704.             if(eval("\x01") == 731)
  705.             {
  706.                set("\x01",eval("\x01") + 222);
  707.                ┬º┬ºpush(true);
  708.             }
  709.             else
  710.             {
  711.                if(eval("\x01") == 795)
  712.                {
  713.                   set("\x01",eval("\x01") - 557);
  714.                   ┬º┬ºpop() extends ┬º┬ºpop() >> ┬º┬ºpop();
  715.                   ┬º┬ºpop() extends ┬º┬ºpop() << (┬º┬ºpop() >>> ┬º┬ºpop());
  716.                   break loop0;
  717.                }
  718.                if(eval("\x01") == 979)
  719.                {
  720.                   set("\x01",eval("\x01") - 442);
  721.                   ┬º┬ºpush("\x0f");
  722.                   ┬º┬ºpush(1);
  723.                }
  724.                else if(eval("\x01") == 953)
  725.                {
  726.                   set("\x01",eval("\x01") - 158);
  727.                   if(┬º┬ºpop())
  728.                   {
  729.                      set("\x01",eval("\x01") - 557);
  730.                   }
  731.                }
  732.                else if(eval("\x01") == 861)
  733.                {
  734.                   set("\x01",eval("\x01") - 334);
  735.                   ┬º┬ºpush(!┬º┬ºpop());
  736.                }
  737.                else if(eval("\x01") == 238)
  738.                {
  739.                   set("\x01",eval("\x01") + 334);
  740.                }
  741.                else if(eval("\x01") == 793)
  742.                {
  743.                   set("\x01",eval("\x01") - 467);
  744.                   if(┬º┬ºpop())
  745.                   {
  746.                      set("\x01",eval("\x01") + 262);
  747.                   }
  748.                }
  749.                else
  750.                {
  751.                   if(eval("\x01") == 315)
  752.                   {
  753.                      set("\x01",eval("\x01") + 359);
  754.                      if(!_global.Game)
  755.                      {
  756.                         _global.Game extends MovieClip;
  757.                         var _loc2_ = _global.Game = function()
  758.                         {
  759.                            super();
  760.                            this.score = 0;
  761.                            this.loadLevels();
  762.                            this.soundFade = 800;
  763.                         }.prototype;
  764.                         _loc2_.startNextLevel = function()
  765.                         {
  766.                            this.message.hide();
  767.                            this.startLevel(this.levelIndex + 1);
  768.                         };
  769.                         _loc2_.loadLevels = function()
  770.                         {
  771.                            var game;
  772.                            var _loc5_ = undefined;
  773.                            var _loc4_ = undefined;
  774.                            var _loc3_ = undefined;
  775.                            if(Config.LEVELS_LOADFROMURL)
  776.                            {
  777.                               game = this;
  778.                               _loc5_ = new XML();
  779.                               _loc5_.ignoreWhite = true;
  780.                               _loc5_.onLoad = function(success)
  781.                               {
  782.                                  game.finishedLoadingLevels(this.firstChild,success);
  783.                               };
  784.                               _loc5_.load(Config.LEVELS_URL);
  785.                            }
  786.                            else
  787.                            {
  788.                               this.levelInfos = new Array();
  789.                               _loc3_ = 0;
  790.                               while(_loc3_ < Config.LEVELS_INFOS.length)
  791.                               {
  792.                                  _loc4_ = new LevelInfo();
  793.                                  _loc4_.fillFromArray(Config.LEVELS_INFOS[_loc3_]);
  794.                                  this.levelInfos.push(_loc4_);
  795.                                  _loc3_ = _loc3_ + 1;
  796.                               }
  797.                               this.startLevel(_root.forcelevel);
  798.                            }
  799.                         };
  800.                         _loc2_.finishedLoadingLevels = function(rootNode, success)
  801.                         {
  802.                            var _loc2_ = undefined;
  803.                            var _loc3_ = undefined;
  804.                            if(!success)
  805.                            {
  806.                               this.gotoAndStop("loadFailed");
  807.                               return undefined;
  808.                            }
  809.                            this.levelInfos = new Array();
  810.                            _loc2_ = rootNode.firstChild;
  811.                            while(_loc2_)
  812.                            {
  813.                               if(_loc2_.nodeName == "LEVEL")
  814.                               {
  815.                                  _loc3_ = new LevelInfo();
  816.                                  _loc3_.fillFromNode(_loc2_);
  817.                                  this.levelInfos.push(_loc3_);
  818.                               }
  819.                               _loc2_ = _loc2_.nextSibling;
  820.                            }
  821.                            this.startLevel(0);
  822.                         };
  823.                         _loc2_.startLevel = function(levelIndex)
  824.                         {
  825.                            this.levelIndex = levelIndex;
  826.                            this.levelName = this.levelInfos[levelIndex].name;
  827.                            this.createThings(this.levelInfos[levelIndex]);
  828.                            this.moveStepX = 0;
  829.                            this.moveStepY = 0;
  830.                            this.restartButton.onRelease = function()
  831.                            {
  832.                               _root.clickSound.start();
  833.                               this._parent.restartLevel();
  834.                            };
  835.                            this.backmenuButton.onRelease = function()
  836.                            {
  837.                               _root.bgmusic.setVolume(100);
  838.                               _root.bgmusic.stop();
  839.                               _root.clickSound.start();
  840.                               _root.gotoAndStop("title");
  841.                            };
  842.                            clearInterval(this.intervalID);
  843.                            this.intervalID = setInterval(this,"onPlayTime",1);
  844.                            this.gotoAndStop("play");
  845.                         };
  846.                         _loc2_.restartLevel = function()
  847.                         {
  848.                            this.startLevel(this.levelIndex);
  849.                         };
  850.                         _loc2_.createThings = function(levelInfo)
  851.                         {
  852.                            var _loc4_ = undefined;
  853.                            var _loc5_ = undefined;
  854.                            var _loc6_ = undefined;
  855.                            var _loc2_ = undefined;
  856.                            var _loc3_ = undefined;
  857.                            _loc2_ = 0;
  858.                            while(_loc2_ < this.things.length)
  859.                            {
  860.                               this.things[_loc2_].removeMovieClip();
  861.                               _loc2_ = _loc2_ + 1;
  862.                            }
  863.                            this.things = new Array();
  864.                            _loc2_ = 0;
  865.                            while(_loc2_ < this.inventoryKeys.length)
  866.                            {
  867.                               this.inventoryKeys[_loc2_].removeMovieClip();
  868.                               _loc2_ = _loc2_ + 1;
  869.                            }
  870.                            this.inventoryKeys = new Array();
  871.                            this.inventoryKeyIndexes = new Array();
  872.                            _loc2_ = 0;
  873.                            while(_loc2_ < levelInfo.typeInfos.length)
  874.                            {
  875.                               _loc3_ = 0;
  876.                               while(_loc3_ < levelInfo.typeInfos[_loc2_].length)
  877.                               {
  878.                                  _loc4_ = levelInfo.typeInfos[_loc2_][_loc3_];
  879.                                  if(_loc4_.type != TypeInfo.TYPE_OPEN)
  880.                                  {
  881.                                     switch(_loc4_.type)
  882.                                     {
  883.                                        case TypeInfo.TYPE_BLOCK:
  884.                                           _loc5_ = this.createBlock(_loc2_,_loc3_,_loc4_.blockType);
  885.                                           break;
  886.                                        case TypeInfo.TYPE_PUSHBLOCK:
  887.                                           _loc5_ = this.createPushBlock(_loc2_,_loc3_);
  888.                                           break;
  889.                                        case TypeInfo.TYPE_KEY:
  890.                                           _loc5_ = this.createKey(_loc2_,_loc3_,_loc4_.keyButtonIndex);
  891.                                           break;
  892.                                        case TypeInfo.TYPE_BUTTON:
  893.                                           _loc5_ = this.createButton(_loc2_,_loc3_,_loc4_.keyButtonIndex);
  894.                                           break;
  895.                                        case TypeInfo.TYPE_DOOR:
  896.                                           _loc5_ = this.createDoor(_loc2_,_loc3_,_loc4_.doorType,_loc4_.doorDirection,_loc4_.keyButtonIndex);
  897.                                           break;
  898.                                        case TypeInfo.TYPE_MAN:
  899.                                           _loc6_ = this.createMan(_loc2_,_loc3_);
  900.                                           this.man = _loc6_;
  901.                                           _loc5_ = _loc6_;
  902.                                           break;
  903.                                        case TypeInfo.TYPE_FLAG:
  904.                                           _loc5_ = this.createFlag(_loc2_,_loc3_);
  905.                                     }
  906.                                     this.things.push(_loc5_);
  907.                                  }
  908.                                  _loc3_ = _loc3_ + 1;
  909.                               }
  910.                               _loc2_ = _loc2_ + 1;
  911.                            }
  912.                            this.updateDepths();
  913.                         };
  914.                         _loc2_.createBlock = function(x, y, type)
  915.                         {
  916.                            var _loc2_ = this.thingsHolder.getNextHighestDepth();
  917.                            var _loc4_ = this.thingsHolder.attachMovie("block","thing" + _loc2_,_loc2_);
  918.                            var _loc3_ = _loc4_;
  919.                            _loc3_.initialize(x,y,type);
  920.                            return _loc3_;
  921.                         };
  922.                         _loc2_.createPushBlock = function(x, y)
  923.                         {
  924.                            var _loc2_ = this.thingsHolder.getNextHighestDepth();
  925.                            var _loc4_ = this.thingsHolder.attachMovie("pushBlock","thing" + _loc2_,_loc2_);
  926.                            var _loc3_ = _loc4_;
  927.                            _loc3_.initialize(x,y);
  928.                            return _loc3_;
  929.                         };
  930.                         _loc2_.createKey = function(x, y, keyIndex)
  931.                         {
  932.                            var _loc3_ = this.thingsHolder.getNextHighestDepth();
  933.                            var _loc4_ = this.thingsHolder.attachMovie("doorKey","thing" + _loc3_,_loc3_);
  934.                            var _loc2_ = _loc4_;
  935.                            _loc2_.initialize(x,y,keyIndex);
  936.                            return _loc2_;
  937.                         };
  938.                         _loc2_.createButton = function(x, y, buttonIndex)
  939.                         {
  940.                            var _loc2_ = this.thingsHolder.getNextHighestDepth();
  941.                            var _loc4_ = this.thingsHolder.attachMovie("doorButton","thing" + _loc2_,_loc2_);
  942.                            var _loc3_ = _loc4_;
  943.                            _loc3_.initialize(x,y,buttonIndex);
  944.                            return _loc3_;
  945.                         };
  946.                         _loc2_.createDoor = function(x, y, type, direction, keyButtonIndex)
  947.                         {
  948.                            var _loc2_ = this.thingsHolder.getNextHighestDepth();
  949.                            var _loc4_ = this.thingsHolder.attachMovie("door","thing" + _loc2_,_loc2_);
  950.                            var _loc3_ = _loc4_;
  951.                            _loc3_.initialize(x,y,type,direction,keyButtonIndex);
  952.                            return _loc3_;
  953.                         };
  954.                         _loc2_.createMan = function(x, y)
  955.                         {
  956.                            var _loc3_ = this.thingsHolder.getNextHighestDepth();
  957.                            var _loc4_ = this.thingsHolder.attachMovie("man","thing" + _loc3_,_loc3_);
  958.                            var _loc2_ = _loc4_;
  959.                            _loc2_.initialize(x,y);
  960.                            return _loc2_;
  961.                         };
  962.                         _loc2_.createFlag = function(x, y)
  963.                         {
  964.                            var _loc3_ = this.thingsHolder.getNextHighestDepth();
  965.                            var _loc4_ = this.thingsHolder.attachMovie("flag","thing" + _loc3_,_loc3_);
  966.                            var _loc2_ = _loc4_;
  967.                            _loc2_.initialize(x,y);
  968.                            return _loc2_;
  969.                         };
  970.                         _loc2_.onPlayTime = function()
  971.                         {
  972.                            var _loc7_ = getTimer();
  973.                            var _loc4_ = undefined;
  974.                            var _loc6_ = undefined;
  975.                            var _loc5_ = undefined;
  976.                            var _loc3_ = undefined;
  977.                            if(this.soundFade > 0)
  978.                            {
  979.                               this.soundFade = this.soundFade - 1;
  980.                               if(this.soundFade <= 50)
  981.                               {
  982.                                  if(this.soundFade == 50)
  983.                                  {
  984.                                     _root.bgmusic.setVolume(100);
  985.                                  }
  986.                                  if(this.soundFade == 49)
  987.                                  {
  988.                                     _root.bgmusic.stop();
  989.                                  }
  990.                               }
  991.                               else
  992.                               {
  993.                                  _root.bgmusic.setVolume(Math.round(this.soundFade / 8));
  994.                               }
  995.                            }
  996.                            if(this.updateMoveDirections(_loc7_))
  997.                            {
  998.                               return undefined;
  999.                            }
  1000.                            if(this.moveStepX == 0 && this.moveStepY == 0)
  1001.                            {
  1002.                               return undefined;
  1003.                            }
  1004.                            _loc4_ = (_loc7_ - this.startMoveTime) / Config.MAN_MOVETIME;
  1005.                            if(_loc4_ <= 0)
  1006.                            {
  1007.                               return undefined;
  1008.                            }
  1009.                            if(_loc4_ > 1)
  1010.                            {
  1011.                               _loc4_ = 1;
  1012.                            }
  1013.                            _loc6_ = this.man.x + _loc4_ * this.moveStepX;
  1014.                            _loc5_ = this.man.y + _loc4_ * this.moveStepY;
  1015.                            this.man._x = _loc6_ * Config.DIRECTION_X[0] / Config.DIMENSION_X + _loc5_ * Config.DIRECTION_Y[0] / Config.DIMENSION_Y;
  1016.                            this.man._y = _loc6_ * Config.DIRECTION_X[1] / Config.DIMENSION_X + _loc5_ * Config.DIRECTION_Y[1] / Config.DIMENSION_Y;
  1017.                            _loc3_ = this.getPushingBlock(this.moveStepX,this.moveStepY);
  1018.                            if(_loc3_ != null)
  1019.                            {
  1020.                               this.man.setPushing(true);
  1021.                               _loc6_ = _loc3_.x + _loc4_ * this.moveStepX;
  1022.                               _loc5_ = _loc3_.y + _loc4_ * this.moveStepY;
  1023.                               _loc3_._x = _loc6_ * Config.DIRECTION_X[0] / Config.DIMENSION_X + _loc5_ * Config.DIRECTION_Y[0] / Config.DIMENSION_Y;
  1024.                               _loc3_._y = _loc6_ * Config.DIRECTION_X[1] / Config.DIMENSION_X + _loc5_ * Config.DIRECTION_Y[1] / Config.DIMENSION_Y;
  1025.                            }
  1026.                            this.updateDepth(this.man);
  1027.                            if(_loc3_)
  1028.                            {
  1029.                               this.updateDepth(_loc3_);
  1030.                            }
  1031.                            if(_loc4_ == 1)
  1032.                            {
  1033.                               this.man.x += this.moveStepX;
  1034.                               this.man.y += this.moveStepY;
  1035.                               if(_loc3_)
  1036.                               {
  1037.                                  _loc3_.x += this.moveStepX;
  1038.                                  _loc3_.y += this.moveStepY;
  1039.                                  _root.boxSound.start();
  1040.                               }
  1041.                               this.man.setPushing(false);
  1042.                               this.moveStepX = 0;
  1043.                               this.moveStepY = 0;
  1044.                               this.pickKey();
  1045.                               if(this.updateDoors())
  1046.                               {
  1047.                                  return undefined;
  1048.                               }
  1049.                               if(this.checkWin())
  1050.                               {
  1051.                                  return undefined;
  1052.                               }
  1053.                               this.updateMoveDirections(_loc7_);
  1054.                               this.onPlayTime();
  1055.                            }
  1056.                            updateAfterEvent();
  1057.                         };
  1058.                         _loc2_.updateMoveDirections = function(time)
  1059.                         {
  1060.                            if(this.moveStepX != 0 || this.moveStepY != 0)
  1061.                            {
  1062.                               return undefined;
  1063.                            }
  1064.                            if(Key.isDown(37))
  1065.                            {
  1066.                               if(this.setFaceDirection(-1,0))
  1067.                               {
  1068.                                  return true;
  1069.                               }
  1070.                               if(!this.getCanMove(-1,0))
  1071.                               {
  1072.                                  return false;
  1073.                               }
  1074.                               this.moveStepX = -1;
  1075.                               this.moveStepY = 0;
  1076.                               this.startMoveTime = time;
  1077.                            }
  1078.                            else if(Key.isDown(39))
  1079.                            {
  1080.                               if(this.setFaceDirection(1,0))
  1081.                               {
  1082.                                  return true;
  1083.                               }
  1084.                               if(!this.getCanMove(1,0))
  1085.                               {
  1086.                                  return false;
  1087.                               }
  1088.                               this.moveStepX = 1;
  1089.                               this.moveStepY = 0;
  1090.                               this.startMoveTime = time;
  1091.                            }
  1092.                            else if(Key.isDown(38))
  1093.                            {
  1094.                               if(this.setFaceDirection(0,-1))
  1095.                               {
  1096.                                  return true;
  1097.                               }
  1098.                               if(!this.getCanMove(0,-1))
  1099.                               {
  1100.                                  return false;
  1101.                               }
  1102.                               this.moveStepX = 0;
  1103.                               this.moveStepY = -1;
  1104.                               this.startMoveTime = time;
  1105.                            }
  1106.                            else if(Key.isDown(40))
  1107.                            {
  1108.                               if(this.setFaceDirection(0,1))
  1109.                               {
  1110.                                  return true;
  1111.                               }
  1112.                               if(!this.getCanMove(0,1))
  1113.                               {
  1114.                                  return false;
  1115.                               }
  1116.                               this.moveStepX = 0;
  1117.                               this.moveStepY = 1;
  1118.                               this.startMoveTime = time;
  1119.                            }
  1120.                            return false;
  1121.                         };
  1122.                         _loc2_.setFaceDirection = function(directionX, directionY)
  1123.                         {
  1124.                            var _loc4_ = this.getTileThings(this.man.x + directionX,this.man.y + directionY);
  1125.                            var _loc5_ = undefined;
  1126.                            var _loc3_ = undefined;
  1127.                            this.man.setDirection(directionX,directionY);
  1128.                            _loc3_ = 0;
  1129.                            while(_loc3_ < _loc4_.length)
  1130.                            {
  1131.                               if(_loc4_[_loc3_].type == TypeInfo.TYPE_DOOR)
  1132.                               {
  1133.                                  if(_loc4_[_loc3_].doorType == TypeInfo.DOORTYPE_KEY)
  1134.                                  {
  1135.                                     _loc5_ = this.getInventoryIndex(_loc4_[_loc3_].keyButtonIndex);
  1136.                                     if(_loc5_ != -1)
  1137.                                     {
  1138.                                        if(!_loc4_[_loc3_].opened)
  1139.                                        {
  1140.                                           this.removeKeyFromInventory(_loc5_);
  1141.                                           _loc4_[_loc3_].opened = true;
  1142.                                           _root.doorSound.start();
  1143.                                           this.openingDoors = new Array();
  1144.                                           this.closingDoors = new Array();
  1145.                                           this.openingDoors.push(_loc4_[_loc3_]);
  1146.                                           clearInterval(this.intervalID);
  1147.                                           this.startDoorTime = getTimer();
  1148.                                           this.intervalID = setInterval(this,"onDoorTime",1);
  1149.                                           return true;
  1150.                                        }
  1151.                                     }
  1152.                                  }
  1153.                               }
  1154.                               _loc3_ = _loc3_ + 1;
  1155.                            }
  1156.                            return false;
  1157.                         };
  1158.                         _loc2_.getInventoryIndex = function(keyIndex)
  1159.                         {
  1160.                            var _loc2_ = undefined;
  1161.                            _loc2_ = 0;
  1162.                            while(_loc2_ < this.inventoryKeyIndexes.length)
  1163.                            {
  1164.                               if(this.inventoryKeyIndexes[_loc2_] == keyIndex)
  1165.                               {
  1166.                                  return _loc2_;
  1167.                               }
  1168.                               _loc2_ = _loc2_ + 1;
  1169.                            }
  1170.                            return -1;
  1171.                         };
  1172.                         _loc2_.getCanMove = function(directionX, directionY)
  1173.                         {
  1174.                            var _loc2_ = undefined;
  1175.                            var _loc6_ = this.man.x + directionX;
  1176.                            var _loc5_ = this.man.y + directionY;
  1177.                            var _loc4_ = false;
  1178.                            var _loc3_ = undefined;
  1179.                            while(true)
  1180.                            {
  1181.                               if(_loc6_ < 0 || _loc6_ >= Config.DIMENSION_X || _loc5_ < 0 || _loc5_ >= Config.DIMENSION_Y)
  1182.                               {
  1183.                                  return false;
  1184.                               }
  1185.                               _loc2_ = this.getTileThings(_loc6_,_loc5_);
  1186.                               if(_loc2_.length == 0)
  1187.                               {
  1188.                                  return true;
  1189.                               }
  1190.                               _loc3_ = 0;
  1191.                               while(_loc3_ < _loc2_.length)
  1192.                               {
  1193.                                  switch(_loc2_[_loc3_].type)
  1194.                                  {
  1195.                                     case TypeInfo.TYPE_KEY:
  1196.                                     case TypeInfo.TYPE_BUTTON:
  1197.                                     case TypeInfo.TYPE_FLAG:
  1198.                                        if(_loc2_.length == 1)
  1199.                                        {
  1200.                                           return true;
  1201.                                        }
  1202.                                        break;
  1203.                                     case TypeInfo.TYPE_BLOCK:
  1204.                                        return false;
  1205.                                     default:
  1206.                                        if(_loc0_ !== TypeInfo.TYPE_PUSHBLOCK)
  1207.                                        {
  1208.                                           if(_loc0_ === TypeInfo.TYPE_DOOR)
  1209.                                           {
  1210.                                              if(!_loc2_[_loc3_].opened)
  1211.                                              {
  1212.                                                 return false;
  1213.                                              }
  1214.                                              if(_loc2_.length == 1)
  1215.                                              {
  1216.                                                 return true;
  1217.                                              }
  1218.                                           }
  1219.                                        }
  1220.                                        else
  1221.                                        {
  1222.                                           if(_loc4_)
  1223.                                           {
  1224.                                              return false;
  1225.                                           }
  1226.                                           _loc4_ = true;
  1227.                                        }
  1228.                                        break;
  1229.                                  }
  1230.                                  _loc3_ = _loc3_ + 1;
  1231.                               }
  1232.                               _loc6_ += directionX;
  1233.                               _loc5_ += directionY;
  1234.                            }
  1235.                         };
  1236.                         _loc2_.getTileThings = function(x, y)
  1237.                         {
  1238.                            var _loc3_ = new Array();
  1239.                            var _loc2_ = undefined;
  1240.                            _loc2_ = 0;
  1241.                            while(_loc2_ < this.things.length)
  1242.                            {
  1243.                               if(this.things[_loc2_].x == x && this.things[_loc2_].y == y)
  1244.                               {
  1245.                                  _loc3_.push(this.things[_loc2_]);
  1246.                               }
  1247.                               _loc2_ = _loc2_ + 1;
  1248.                            }
  1249.                            return _loc3_;
  1250.                         };
  1251.                         _loc2_.getPushingBlock = function(directionX, directionY)
  1252.                         {
  1253.                            var _loc3_ = this.getTileThings(this.man.x + directionX,this.man.y + directionY);
  1254.                            var _loc2_ = undefined;
  1255.                            _loc2_ = 0;
  1256.                            while(_loc2_ < _loc3_.length)
  1257.                            {
  1258.                               if(_loc3_[_loc2_].type == TypeInfo.TYPE_PUSHBLOCK)
  1259.                               {
  1260.                                  return _loc3_[_loc2_];
  1261.                               }
  1262.                               _loc2_ = _loc2_ + 1;
  1263.                            }
  1264.                            return null;
  1265.                         };
  1266.                         _loc2_.updateDepth = function(thing)
  1267.                         {
  1268.                            var _loc4_ = undefined;
  1269.                            var _loc2_ = undefined;
  1270.                            if(thing.index > 0 && Thing.compareDepths(thing,this.things[thing.index - 1]) == -1)
  1271.                            {
  1272.                               _loc4_ = this.findDepthIndex(thing,0,thing.index);
  1273.                               this.things.splice(thing.index,1);
  1274.                               this.things.splice(_loc4_,0,thing);
  1275.                            }
  1276.                            else
  1277.                            {
  1278.                               if(!(thing.index < this.things.length - 1 && Thing.compareDepths(thing,this.things[thing.index + 1]) == 1))
  1279.                               {
  1280.                                  return undefined;
  1281.                               }
  1282.                               _loc4_ = this.findDepthIndex(thing,thing.index + 1,this.things.length);
  1283.                               this.things.splice(_loc4_,0,thing);
  1284.                               this.things.splice(thing.index,1);
  1285.                            }
  1286.                            _loc2_ = 0;
  1287.                            while(_loc2_ < this.things.length)
  1288.                            {
  1289.                               this.things[_loc2_].index = _loc2_;
  1290.                               this.things[_loc2_].swapDepths(_loc2_);
  1291.                               _loc2_ = _loc2_ + 1;
  1292.                            }
  1293.                         };
  1294.                         _loc2_.updateDepths = function()
  1295.                         {
  1296.                            var _loc2_ = undefined;
  1297.                            this.things.sort(Thing.compareDepths);
  1298.                            _loc2_ = 0;
  1299.                            while(_loc2_ < this.things.length)
  1300.                            {
  1301.                               this.things[_loc2_].index = _loc2_;
  1302.                               this.things[_loc2_].swapDepths(_loc2_);
  1303.                               _loc2_ = _loc2_ + 1;
  1304.                            }
  1305.                         };
  1306.                         _loc2_.findDepthIndex = function(thing, begin, end)
  1307.                         {
  1308.                            var _loc2_ = undefined;
  1309.                            var _loc5_ = undefined;
  1310.                            while(begin < end)
  1311.                            {
  1312.                               _loc2_ = Math.floor((begin + end) / 2);
  1313.                               _loc5_ = Thing.compareDepths(thing,this.things[_loc2_]);
  1314.                               if(_loc5_ == -1)
  1315.                               {
  1316.                                  end = _loc2_;
  1317.                               }
  1318.                               else
  1319.                               {
  1320.                                  begin = _loc2_ + 1;
  1321.                               }
  1322.                            }
  1323.                            return end;
  1324.                         };
  1325.                         _loc2_.pickKey = function()
  1326.                         {
  1327.                            var _loc2_ = undefined;
  1328.                            var _loc3_ = undefined;
  1329.                            _loc2_ = 0;
  1330.                            while(_loc2_ < this.things.length)
  1331.                            {
  1332.                               if(!(this.things[_loc2_].x != this.man.x || this.things[_loc2_].y != this.man.y))
  1333.                               {
  1334.                                  if(this.things[_loc2_].type == TypeInfo.TYPE_KEY)
  1335.                                  {
  1336.                                     this.addKeyToInventory(this.things[_loc2_].keyIndex);
  1337.                                     this.things[_loc2_].removeMovieClip();
  1338.                                     this.things.splice(_loc2_,1);
  1339.                                     _loc3_ = _loc2_;
  1340.                                     while(_loc3_ < this.things.length)
  1341.                                     {
  1342.                                        this.things[_loc3_].index = _loc3_;
  1343.                                        _loc3_ = _loc3_ + 1;
  1344.                                     }
  1345.                                     _loc2_ = _loc2_ - 1;
  1346.                                  }
  1347.                               }
  1348.                               _loc2_ = _loc2_ + 1;
  1349.                            }
  1350.                         };
  1351.                         _loc2_.addKeyToInventory = function(keyIndex)
  1352.                         {
  1353.                            var _loc4_ = this.inventoryHolder.getNextHighestDepth();
  1354.                            var _loc3_ = this.inventoryHolder.attachMovie("inventoryKey","key" + _loc4_,_loc4_);
  1355.                            new Color(_loc3_).setRGB(Config.KEY_COLOURS[keyIndex]);
  1356.                            _loc3_._x = this.inventoryKeys.length * Config.INVENTORY_KEYSPACING;
  1357.                            this.inventoryKeys.push(_loc3_);
  1358.                            this.inventoryKeyIndexes.push(keyIndex);
  1359.                            _root.pickupSound.start();
  1360.                         };
  1361.                         _loc2_.removeKeyFromInventory = function(index)
  1362.                         {
  1363.                            var _loc2_ = undefined;
  1364.                            this.inventoryKeys[index].removeMovieClip();
  1365.                            this.inventoryKeys.splice(index,1);
  1366.                            this.inventoryKeyIndexes.splice(index,1);
  1367.                            _loc2_ = index;
  1368.                            while(_loc2_ < this.inventoryKeys.length)
  1369.                            {
  1370.                               this.inventoryKeys[_loc2_]._x = _loc2_ * Config.INVENTORY_KEYSPACING;
  1371.                               _loc2_ = _loc2_ + 1;
  1372.                            }
  1373.                         };
  1374.                         _loc2_.updateDoors = function()
  1375.                         {
  1376.                            var _loc3_ = undefined;
  1377.                            this.openingDoors = new Array();
  1378.                            this.closingDoors = new Array();
  1379.                            _loc3_ = 0;
  1380.                            while(_loc3_ < this.things.length)
  1381.                            {
  1382.                               if(this.things[_loc3_].type == TypeInfo.TYPE_DOOR)
  1383.                               {
  1384.                                  if(this.things[_loc3_].doorType == TypeInfo.DOORTYPE_BUTTON)
  1385.                                  {
  1386.                                     if(this.things[_loc3_].opened)
  1387.                                     {
  1388.                                        if(!this.getDoorShouldBeOpen(this.things[_loc3_]))
  1389.                                        {
  1390.                                           this.closingDoors.push(this.things[_loc3_]);
  1391.                                           _root.doorSound.start();
  1392.                                        }
  1393.                                     }
  1394.                                     else if(this.getDoorShouldBeOpen(this.things[_loc3_]))
  1395.                                     {
  1396.                                        this.openingDoors.push(this.things[_loc3_]);
  1397.                                        _root.doorSound.start();
  1398.                                     }
  1399.                                  }
  1400.                               }
  1401.                               _loc3_ = _loc3_ + 1;
  1402.                            }
  1403.                            if(this.openingDoors.length > 0 || this.closingDoors.length > 0)
  1404.                            {
  1405.                               clearInterval(this.intervalID);
  1406.                               this.startDoorTime = getTimer();
  1407.                               this.intervalID = setInterval(this,"onDoorTime",1);
  1408.                               return true;
  1409.                            }
  1410.                            return false;
  1411.                         };
  1412.                         _loc2_.getDoorShouldBeOpen = function(door)
  1413.                         {
  1414.                            var _loc3_ = undefined;
  1415.                            var _loc2_ = undefined;
  1416.                            if(door.opened)
  1417.                            {
  1418.                               _loc2_ = 0;
  1419.                               while(_loc2_ < this.things.length)
  1420.                               {
  1421.                                  if(this.things[_loc2_] != door)
  1422.                                  {
  1423.                                     if(this.things[_loc2_].x == door.x && this.things[_loc2_].y == door.y)
  1424.                                     {
  1425.                                        return true;
  1426.                                     }
  1427.                                  }
  1428.                                  _loc2_ = _loc2_ + 1;
  1429.                               }
  1430.                            }
  1431.                            _loc2_ = 0;
  1432.                            while(true)
  1433.                            {
  1434.                               if(_loc2_ < this.things.length)
  1435.                               {
  1436.                                  if(this.things[_loc2_].type == TypeInfo.TYPE_BUTTON)
  1437.                                  {
  1438.                                     if(this.things[_loc2_].buttonIndex == door.keyButtonIndex)
  1439.                                     {
  1440.                                        _loc3_ = 0;
  1441.                                        while(_loc3_ < this.things.length)
  1442.                                        {
  1443.                                           if(_loc3_ != _loc2_)
  1444.                                           {
  1445.                                              if(this.things[_loc3_].x == this.things[_loc2_].x && this.things[_loc3_].y == this.things[_loc2_].y)
  1446.                                              {
  1447.                                                 break;
  1448.                                              }
  1449.                                           }
  1450.                                           _loc3_ = _loc3_ + 1;
  1451.                                        }
  1452.                                        if(_loc3_ >= this.things.length)
  1453.                                        {
  1454.                                           break;
  1455.                                        }
  1456.                                     }
  1457.                                  }
  1458.                               }
  1459.                               else
  1460.                               {
  1461.                                  return true;
  1462.                               }
  1463.                               _loc2_ = _loc2_ + 1;
  1464.                            }
  1465.                            return false;
  1466.                         };
  1467.                         _loc2_.onDoorTime = function()
  1468.                         {
  1469.                            var _loc4_ = getTimer();
  1470.                            var _loc3_ = (_loc4_ - this.startDoorTime) / Config.DOOR_MOVETIME;
  1471.                            var _loc2_ = undefined;
  1472.                            if(_loc3_ > 1)
  1473.                            {
  1474.                               _loc3_ = 1;
  1475.                            }
  1476.                            _loc2_ = 0;
  1477.                            while(_loc2_ < this.openingDoors.length)
  1478.                            {
  1479.                               this.openingDoors[_loc2_].setCloseRatio(1 - _loc3_);
  1480.                               this.updateDepth(this.openingDoors[_loc2_]);
  1481.                               _loc2_ = _loc2_ + 1;
  1482.                            }
  1483.                            _loc2_ = 0;
  1484.                            while(_loc2_ < this.closingDoors.length)
  1485.                            {
  1486.                               this.closingDoors[_loc2_].setCloseRatio(_loc3_);
  1487.                               this.updateDepth(this.closingDoors[_loc2_]);
  1488.                               _loc2_ = _loc2_ + 1;
  1489.                            }
  1490.                            if(_loc3_ == 1)
  1491.                            {
  1492.                               clearInterval(this.intervalID);
  1493.                               this.intervalID = setInterval(this,"onPlayTime",1);
  1494.                            }
  1495.                            updateAfterEvent();
  1496.                         };
  1497.                         _loc2_.checkWin = function()
  1498.                         {
  1499.                            var _loc4_ = this.getTileThings(this.man.x,this.man.y);
  1500.                            var _loc3_ = undefined;
  1501.                            _loc3_ = 0;
  1502.                            while(_loc3_ < _loc4_.length)
  1503.                            {
  1504.                               if(_loc4_[_loc3_].type == TypeInfo.TYPE_FLAG)
  1505.                               {
  1506.                                  this.score += this.levelInfos[this.levelIndex].score;
  1507.                                  clearInterval(this.intervalID);
  1508.                                  if(this.levelIndex < this.levelInfos.length - 1)
  1509.                                  {
  1510.                                     this.message.showClear(this.levelIndex);
  1511.                                     _root.clearSound.start();
  1512.                                  }
  1513.                                  else
  1514.                                  {
  1515.                                     this.message.showWin();
  1516.                                     _root.bgmusic.start();
  1517.                                  }
  1518.                               }
  1519.                               _loc3_ = _loc3_ + 1;
  1520.                            }
  1521.                            return false;
  1522.                         };
  1523.                         ┬º┬ºpush(ASSetPropFlags(_global.Game.prototype,null,1));
  1524.                      }
  1525.                      ┬º┬ºpop();
  1526.                      break loop0;
  1527.                   }
  1528.                   if(eval("\x01") == 572)
  1529.                   {
  1530.                      set("\x01",eval("\x01") + 221);
  1531.                      ┬º┬ºpush(true);
  1532.                   }
  1533.                   else if(eval("\x01") == 671)
  1534.                   {
  1535.                      set("\x01",eval("\x01") - 356);
  1536.                   }
  1537.                   else if(eval("\x01") == 825)
  1538.                   {
  1539.                      set("\x01",eval("\x01") + 154);
  1540.                   }
  1541.                   else if(eval("\x01") == 743)
  1542.                   {
  1543.                      set("\x01",eval("\x01") - 171);
  1544.                   }
  1545.                   else if(eval("\x01") == 71)
  1546.                   {
  1547.                      set("\x01",eval("\x01") + 805);
  1548.                      ┬º┬ºpush(true);
  1549.                   }
  1550.                   else if(eval("\x01") == 347)
  1551.                   {
  1552.                      set("\x01",eval("\x01") - 276);
  1553.                   }
  1554.                   else if(eval("\x01") == 876)
  1555.                   {
  1556.                      set("\x01",eval("\x01") + 52);
  1557.                      if(┬º┬ºpop())
  1558.                      {
  1559.                         set("\x01",eval("\x01") + 56);
  1560.                      }
  1561.                   }
  1562.                   else if(eval("\x01") == 527)
  1563.                   {
  1564.                      set("\x01",eval("\x01") + 144);
  1565.                      if(┬º┬ºpop())
  1566.                      {
  1567.                         set("\x01",eval("\x01") - 356);
  1568.                      }
  1569.                   }
  1570.                   else if(eval("\x01") == 984)
  1571.                   {
  1572.                      set("\x01",eval("\x01") - 5);
  1573.                   }
  1574.                   else
  1575.                   {
  1576.                      if(eval("\x01") != 670)
  1577.                      {
  1578.                         break;
  1579.                      }
  1580.                      set("\x01",eval("\x01") - 299);
  1581.                      ┬º┬ºpush("\x0f");
  1582.                   }
  1583.                }
  1584.             }
  1585.          }
  1586.       }
  1587.    }
  1588. }
  1589.